home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0295.lzh / AMOSLIST / text0084.txt < prev    next >
Encoding:
Text File  |  1995-03-01  |  2.1 KB  |  52 lines

  1. > > So, what happened?  Well, Car A transferred 25% of its velocities to Car 
  2. > > B and lost 8.33% to friction, heat, etc.  Car B transferred 12.5% of its 
  3. > > vertical velocity to Car B, but because Car A's horizontal component was 
  4. > > greater than Car B's, there was no return transfer.  (Also note that I 
  5. > > made these percentages up - increase or reduce them depending on how 
  6. > > bouncy you want the cars to be...)
  7. > Well, it is not realistic at all...
  8.  
  9. Who cares if it's 100% realistic or not as long as it looks
  10. and feels ok? We are talking about a game, and not a complex
  11. car crash simulator.
  12. Personally, I think the idea of just transferring some of the other cars
  13. velocity (vector) to the other car might give good results as
  14. a rough approximation. This simple approach has also the advantage
  15. that you can add only a certain percentage of what you've taken
  16. away from the other car to simulate some of the kinetic energy
  17. losses.
  18.  
  19. > If you have patience i will go home and look on my books...
  20. > Sure there is an equation (or two) which can describe every collision you 
  21. > want...
  22. > If I remember right it was quite long... but not very complex.
  23.  
  24. Realistic inelastic collision handling would be bejond good and evil.
  25. Even the formula for the elastic collision are long.
  26.  
  27. > I think you want elastic collision, that are collisions were total energy 
  28. > is conserved. They are more simple... note that  the previous description 
  29. > of loss of energy was completely false.
  30. > There is not energy loss during collision but the heat produced by the hit.
  31.  
  32. I think 100% elastic collision will look bad in a car racing game. The
  33. "bouncing" effect would be much too strong.
  34. The formula can be optained with equations for kinetic energy and
  35. impulse (sp?) conservation. Transformation in the center of mass
  36. makes it easier to solve these equations. The result can be found in
  37. any physics book, I guess.
  38. BTW, the description about the energy loss given by the original
  39. poster wasn't that wrong. You will notice that in real car crashs
  40. MOST of the kinetic energy is lost through the irreversible deformation
  41. of the cars!
  42.  
  43. Greetings,
  44.  
  45.     Chris
  46.  
  47.